<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<html>
    <body>
        <h2>Search Book Result</h2>
        <style type="text/css">
            .myTable { background-color:#FFFFFF;border-collapse:collapse; }
            .myTable th { background-color:#FFFFFF;color:black; }
            .myTable td, .myTable th { padding:5px;border:1px solid #000000; }
        </style>
        <!-- Place the above styles between the document's <head></head> tags -->
        <table class="myTable">
            <tr>
                <th>Title</th>
                <th>Author</th>
                <th>Publisher</th>
                <th>Year</th>
                <th>Code</th>
            </tr>
            <c:forEach items="${model.books}" var="book">
                <tr>
                    <td> <c:out value="${book.title}"/>  </td>
                    <td>  <c:out value="${book.author}"/></td>
                    <td>  <c:out value="${book.publisher}"/></td>
                    <td>  <c:out value="${book.year}"/></td>
                    <td>  <c:out value="${book.code}"/></td>
                </tr>
            </c:forEach>
        </table>
        <a href="<c:url value="search.htm"/>">Back</a>
    </body>
</html>